<!DOCTYPE html>
<html>
<head>
    <meta content="IE=11.0000" http-equiv="X-Ua-Compatible">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-Ua-Compatible" content="IE=edge,chrome=1">
  <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>业务受理2</title>

    <!--region 引入公用js和css -->
    <script>
        var HOST_S = "";
        var ctx = "";
    </script>
    <link href="../assets/plugins/animate/animate.css" rel="stylesheet">
    <link href="../assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/base/css/components.css" rel="stylesheet" id="style_components" type="text/css"/>
    <link href="../assets/base/css/plugins.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/ditop/layout.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/datatables/datatables.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css" rel="stylesheet"
          type="text/css"/>
    <link href="../assets/plugins/bootstrap-table/bootstrap-table.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.css"
          rel="stylesheet">
    <link href="../assets/plugins/bootstrap-toastr/toastr.css" rel="stylesheet">
    <link rel="stylesheet" href="../assets/plugins/sweetalert/sweetalert.css">
    <link rel="stylesheet" href="../assets/plugins/layer/theme/default/layer.css">

    <!-- CSS Customization -->
    <link href="../assets/plugins/select2/css/select2.min.css" rel="stylesheet">
    <link href="../assets/plugins/icheck/skins/flat/aero.css" rel="stylesheet">
    <link href="../assets/ditop/ditop.css" rel="stylesheet">
    <link href="../assets/ditop/style/ztree/style9/treestyle.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet">
    <link href="../assets/plugins/bootstrap-datepicker/css/bootstrap-datepicker3.min.css" rel="stylesheet"
          type="text/css"/>



    <script src="../assets/plugins/jquery/jquery.min.js"></script>
    <script src="../assets/plugins/bootstrap/js/bootstrap.min.js"></script>
    <script src="../assets/plugins/bootstrap-toastr/toastr.js"></script>
    <script src="../assets/plugins/art-template/template.js"></script>
    <script src="../assets/plugins/layer/layer.js"></script>
    <script src="../assets/ditop/ditop.js"></script>

    <!--endregion-->
    <style>

    </style>
</head>

<body>


<input id="input" type="text" style="width: 800px;height: 40px;background: white">

<ul id="wwww2">
  <li class="dropdown-select2">
    <!--<label class="mt-checkbox mt-checkbox-outline">
      <input type="checkbox" value="1" name="test">
      <span></span>
      <em>室内环境检测</em>
    </label>-->

    <input type="checkbox" value="1" name="test">
    室内环境检测室内环境检测室内环境检测
  </li>
  <li class="dropdown-select2">
    <label class="mt-checkbox mt-checkbox-outline" data-stopPropagation=”true”>
      <input type="checkbox" value="1" name="test">
      <span></span>
      <em>室内环境检测</em>
    </label>
  </li>

  <li class="dropdown-select2">
    <label class="mt-checkbox mt-checkbox-outline" data-stopPropagation=”true”>
      <input type="checkbox" value="1" name="test">
      <span></span>
      <em>地基基础工程检测</em>
    </label>
  </li>
  <li class="dropdown-select2 data-stopPropagation=”true”">
    <label class="mt-checkbox mt-checkbox-outline" data-stopPropagation=”true”>
      <input type="checkbox" value="1" name="test">
      <span></span>
      <em>主体结构工程现场检测</em>
    </label>
  </li>
</ul>


<script>
  // var value=$(this).parent().siblings(".dropdown-toggle").val();

    var arr = [];
    var value = '';
    $("#wwww2 > li").children('label').each(function () {


      $(this).click(function () {

        console.log(22);
        var dd = $(this).find("input").is(":checked");
        var text = $(this).find('em').text();
        console.log(dd);
        /*
                if (!dd) {
                  $(this).addClass("active");
                  arr.push(text);
                  console.log(arr);
                  $.each(arr, function (index, item) {
                    value = value + item + ","
                  });
                  $(this).parent().siblings(".dropdown-toggle").val(value);
                }
                else {

                  arr.splice(arr.indexOf(text), 1);

                  $.each(arr, function (index, item) {
                    value = value + item + ","
                  });
                  $(this).parent().siblings(".dropdown-toggle").val(value);
                  $(this).removeClass("active");
                }*/
      })
    })
    /*    var dropDownSelect = function (ele) {
            dropDownSelect.prototype.init = function () {
                var arr = [];
                var value = "";
                ele.on('click', function () {
                    var dd = $(this).find("input").is(":checked");
                    var text = $(this).find('em').text();
                    // var value=$(this).parent().siblings(".dropdown-toggle").val();
                    if (dd) {
                        $(this).addClass("active");

                        arr.push(text);
                        console.log(arr)
                        $.each(arr, function (index, item) {
                            value = value + item + ","
                        })
                        $(this).parent().siblings(".dropdown-toggle").val(value);
                    } else {
                        arr.splice(arr.indexOf(text), 1);
                        $.each(arr, function (index, item) {
                            value = value + item + ","
                        })
                        $(this).parent().siblings(".dropdown-toggle").val(value);
                        $(this).removeClass("active");
                    }
                })
            }
        }
        $.fn.extend({
            dropDownSelect: function () {
                this.each(function () {
                    new dropDownSelect($(this)).init();
                });
            }
        });
        $(".dropdown-select").dropDownSelect()*/

</script>
<!---->

<script src="../assets/plugins/sweetalert/sweetalert.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/js.cookie.min.js"></script>
<script src="../assets/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="../assets/plugins/jquery.blockui.min.js"></script>
<script src="../assets/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>

<script src="../assets/plugins/bootstrap-touchspin/bootstrap.touchspin.js"></script>
<script src="../assets/plugins/moment.min.js"></script>
<script src="../assets/plugins/bootstrap-daterangepicker/daterangepicker.min.js"></script>
<script src="../assets/plugins/counterup/jquery.waypoints.min.js"></script>
<script src="../assets/plugins/counterup/jquery.counterup.min.js"></script>
<script src="../assets/plugins/fullcalendar/fullcalendar.js"></script>
<script src="../assets/plugins/horizontal-timeline/horizontal-timeline.js"></script>
<script src="../assets/plugins/jquery.sparkline.min.js"></script>

<script src="../assets/plugins/select2/js/select2.js"></script>
<script src="../assets/plugins/select2/js/i18n/zh-CN.js"></script>
<script src="../assets/plugins/ztree/jquery.ztree.all.js"></script>

<script src="../assets/plugins/jquery-form/jquery.form.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.placeholder.min.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.js"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>
<script src="../assets/plugins/jquery-validator/localization/messages_zh.js"></script>
<script src="../assets/plugins/jquery-validator/additional-methods.js"></script>

<script src="../assets/plugins/bootstrap-growl/jquery.bootstrap-growl.js"></script>
<script src="../assets/plugins/bootstrap-table/bootstrap-table.js"></script>
<script src="../assets/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.js"></script>
<script src="../assets/plugins/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.js"></script>


<script src="../assets/base/scripts/app.js"></script>

<script src="../assets/base/scripts/theme.js"></script>
<script src="../assets/ditop/ditop-addition.js"></script>

<script src="../assets/plugins/bootstrap-datepicker/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
<script src="../assets/plugins/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"
        type="text/javascript"></script>
<script type="text/javascript" src="../assets/plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"
        charset="UTF-8"></script>
<script type="text/javascript"
        src="../assets/plugins/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
        charset="UTF-8"></script>
<script src="../assets/plugins/jquery-validator/jquery.validate.custom.js"></script>


</body>
</html>
